package com.jeethink.erp.stock.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 入库单对象 tb_enter_stock
 * 
 * @author ypr
 * @date 2021-06-01
 */
public class TbEnterStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库单编号 */
    private Long enterStockId;

    /** 所入仓库id */
    @Excel(name = "所入仓库id")
    private Long warehouseId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    //入库数量
    private Integer purchaseNum;

    /** 进价 */
    private BigDecimal purchasePrice;

    /** 商品表id */
    private Long commodityId;
    /** 入库时间 */
    private Date firstEnterDate;

    private Long buyId;

    private Long shopId;


    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getBuyId() {
        return buyId;
    }

    public void setBuyId(Long buyId) {
        this.buyId = buyId;
    }

    public Integer getPurchaseNum() {
        return purchaseNum;
    }

    public void setPurchaseNum(Integer purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }

    public Date getFirstEnterDate() {
        return firstEnterDate;
    }

    public void setFirstEnterDate(Date firstEnterDate) {
        this.firstEnterDate = firstEnterDate;
    }

    public void setEnterStockId(Long enterStockId)
    {
        this.enterStockId = enterStockId;
    }

    public Long getEnterStockId() 
    {
        return enterStockId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("enterStockId", getEnterStockId())
            .append("warehouseId", getWarehouseId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
